home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xml;
-
- import javax.swing.event.ChangeEvent;
-
- public class DeclarationChangeEvent extends ChangeEvent {
- public static final int UNSPECIFIED = 0;
- public static final int NAME = 1;
- public static final int ATTR_OWNER = 12;
- public static final int ATTR_OWNER_NAME = 13;
- public static final int ATTR_TYPE = 14;
- public static final int ATTR_OPTIONS = 15;
- public static final int ATTR_DEFAULT = 16;
- public static final int ATTR_REQUIRED = 17;
- public static final int CM_TERM = 20;
- public static final int CM_CONTENTS_ADD = 21;
- public static final int CM_CONTENTS_REMOVE = 22;
- public static final int CM_CONTENTS = 23;
- public static final int CM_OCCURANCE = 24;
- public static final int CM_CONNECTION = 25;
- public static final int CM_CHILD_CONNECTION = 26;
- public static final int ATTRLIST_REMOVE = 32;
- public static final int ATTRLIST_ADD = 33;
- public static final int CONTENT_MODEL_CHANGED = 31;
- public static final int ELEMENT_ATTRLIST_CHANGED = 34;
- public static final int ELEMENT_SUPER_TYPE_CHANGED = 35;
- public static final int ELEMENT_SUPER_TYPE_NAME_CHANGED = 36;
- public static final int PE_MODEL_VALUE = 43;
- public static final int PE_ATTRLIST_VALUE = 44;
- public static final int PE_ATTRLIST_CHANGED = 45;
- public static final int ENTITY_VALUE = 51;
- public static final int ENTITY_SYSTEM = 52;
- public static final int ENTITY_PUBLIC = 53;
- public static final int ENTITY_NOTATION = 54;
- public static final int NOTATION_SYSTEM = 62;
- public static final int NOTATION_PUBLIC = 63;
- public static final int PI_TARGET = 71;
- public static final int PI_INSTRUCTION = 72;
- public static final int SCHEMA_LOC = 81;
- public static final int NAMESPACE_URI = 82;
- public static final int DATATYPE_BASETYPE_CHANGED = 85;
- public static final int DATATYPE_CONSTRAINTS = 86;
- public static final int ERRORS = 99;
- Object oldValue;
- int which;
-
- public DeclarationChangeEvent(Object var1) {
- super(var1);
- }
-
- public DeclarationChangeEvent(Object var1, int var2, Object var3) {
- super(var1);
- this.which = var2;
- this.oldValue = var3;
- }
-
- public void set() {
- this.oldValue = null;
- this.which = 0;
- }
-
- public void set(int var1, Object var2) {
- this.oldValue = var2;
- this.which = var1;
- }
-
- public Object getOldValue() {
- return this.oldValue;
- }
-
- public int getWhich() {
- return this.which;
- }
-
- public BaseDeclaration getDeclaration() {
- return (BaseDeclaration)super.source;
- }
- }
-